CC = arm-linux-gnueabihf-gcc
SOURCES = $(wildcard *.c)
OBJS = $(patsubst %.c, %.o, $(SOURCES))
CFLAGS = -c 

all:$(OBJS)
	$(CC) -o a.out $(OBJS) -pthread

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f $(OBJS) a.out